/*
  Double DC Motor driver class (Use DCMotor)
  Hitoshi Yamada <ouch@emergeplus.jp>

  History:  26/August/09 - V0.1 released.

  This library is free software; you can redistribute it and/or
  modify it under the terms of the GNU Lesser General Public
  License as published by the Free Software Foundation; either
  version 2.1 of the License, or (at your option) any later version.

  This library is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  Lesser General Public License for more details.

  You should have received a copy of the GNU Lesser General Public
  License along with this library; if not, write to the Free Software
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/

#include <DCMotor.h>

class DoubleDCMotor{
private:
  DCMotor L_Motor;
  DCMotor R_Motor;
  float calibration;
public:
  void Init(int L_FIN, int R_FIN, int L_RIN, int R_RIN, int L_VREF, int R_VREF, int motorVIN, int boardVIN, float cal);
  void Go(int speed);
  void Go(int speed, int interval);
  void Back(int speed);
  void Back(int speed, int interval);
  void Stop(void);
  void Stop(int interval);
  void TurnLeft(int speed);
  void TurnLeft(int speed, int interval);
  void TurnRight(int speed);
  void TurnRight(int speed, int interval);
  void Free(void);
};  
